package cn.simon.free.ratelimiter.core;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * redis 配置
 *
 * @author simon
 * @date 2020/3/24 17:42
 * @copyright:
 * @modifier
 * @motto a no talent, people who have to study hard
 */
@Data
@Order(0)
@Component
@ConfigurationProperties(prefix = "cn.glc.rate-limit.redis")
public class RateRedis {

    /**
     * redis address
     */
    private String address;
    /**
     * 数据库
     */
    private int database;
    /**
     * 账号
     */
    private String userName;
    /**
     * 密码
     */
    private String password;

}
